package com.station.client.proxies;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * User: JinJavaMojo
 * Date: 25.09.13
 */

public class PCoordinates implements IsSerializable {

    public PCoordinates() {
    }

    public PCoordinates(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int x;

    public int y;

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof PCoordinates) {
            PCoordinates temp = (PCoordinates) obj;
            return (temp.x == this.x && temp.y == this.y);
        }
        return false;
    }
}
